/* -*- c++ -*- */
/*
 * Copyright 2005 Free Software Foundation, Inc.
 * 
 * This file is part of GNU Radio
 * 
 * GNU Radio is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 * 
 * GNU Radio is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with GNU Radio; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street,
 * Boston, MA 02110-1301, USA.
 */

%feature("autodoc","1");
%include "exception.i"
%import "gnuradio.i"

%{
#include "gnuradio_swig_bug_workaround.h"	// mandatory bug fix
#include "lpc_lpc_encoder.h"
#include "lpc_lpc_decoder.h"
#include "lpc_lpc10_encoder.h"
#include "lpc_lpc10_decoder.h"
#include "lpc_lpc10_vbr_encoder.h"
#include "lpc_lpc10_vbr_decoder.h"
#include <stdexcept>
%}

/* LPC CBR */
GR_SWIG_BLOCK_MAGIC(lpc,lpc_encoder);

lpc_lpc_encoder_sptr lpc_make_lpc_encoder ();

class lpc_lpc_encoder : public gr_sync_decimator {
public:
  ~lpc_lpc_encoder ();
};

// ----------------------------------------------------------------

GR_SWIG_BLOCK_MAGIC(lpc,lpc_decoder);

lpc_lpc_decoder_sptr lpc_make_lpc_decoder ();

class lpc_lpc_decoder : public gr_sync_interpolator {
public:
  ~lpc_lpc_decoder ();
};

/* LPC10 CBR */
GR_SWIG_BLOCK_MAGIC(lpc,lpc10_encoder);

lpc_lpc10_encoder_sptr lpc_make_lpc10_encoder ();

class lpc_lpc10_encoder : public gr_sync_decimator {
public:
  ~lpc_lpc10_encoder ();
};

// ----------------------------------------------------------------

GR_SWIG_BLOCK_MAGIC(lpc,lpc10_decoder);

lpc_lpc10_decoder_sptr lpc_make_lpc10_decoder ();

class lpc_lpc10_decoder : public gr_sync_interpolator {
public:
  ~lpc_lpc10_decoder ();
};

/* LPC10 VBR */
GR_SWIG_BLOCK_MAGIC(lpc,lpc10_vbr_encoder);

lpc_lpc10_vbr_encoder_sptr lpc_make_lpc10_vbr_encoder ();

class lpc_lpc10_vbr_encoder : public gr_block {
public:
  ~lpc_lpc10_vbr_encoder ();
};

// ----------------------------------------------------------------

GR_SWIG_BLOCK_MAGIC(lpc,lpc10_vbr_decoder);

lpc_lpc10_vbr_decoder_sptr lpc_make_lpc10_vbr_decoder ();

class lpc_lpc10_vbr_decoder : public gr_block {
public:
  ~lpc_lpc10_vbr_decoder ();
};
